class SystemBaiduNumberResultModel {
  late List<WordsResult> wordsResult;
  late int logId;
  late int wordsResultNum;

  SystemBaiduNumberResultModel(
      {required this.wordsResult,
      required this.logId,
      required this.wordsResultNum});

  SystemBaiduNumberResultModel.fromJson(Map<String, dynamic> json) {
    if (json['words_result'] != null) {
      wordsResult = <WordsResult>[];
      json['words_result'].forEach((v) {
        wordsResult.add(new WordsResult.fromJson(v));
      });
    }
    logId = json['log_id'];
    wordsResultNum = json['words_result_num'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    if (this.wordsResult != null) {
      data['words_result'] = this.wordsResult.map((v) => v.toJson()).toList();
    }
    data['log_id'] = this.logId;
    data['words_result_num'] = this.wordsResultNum;
    return data;
  }
}

class WordsResult {
  late String words;

  WordsResult({required this.words});

  WordsResult.fromJson(Map<String, dynamic> json) {
    words = json['words'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['words'] = this.words;
    return data;
  }
}
